<?php
/*
 供ajax使用
*/
header("Content-type: text/html; charset=utf-8");
require_once ('config.php');
require_once (WEBURL.'/include/conn.php');
require_once (WEBURL.'/login_status_check.php');
if(!checkLogin()){
	require_once ('admin_login.php');
}
 if(empty($_GET['pre_password'])){
 	return;
}
$admin_name=$_SESSION['admin_name'];
$pre_password=urldecode($_GET['pre_password']);
$sql_pre_password_check="select * from admin where admin_name='$admin_name' and admin_pwd='$pre_password'";
$result_pre_password_check=mysql_query($sql_pre_password_check);
if(!$result_pre_password_check){
	return;
}
$row_number=mysql_num_rows($result_pre_password_check);
 if($row_number==0){
	echo "原密码错误，请修改！";
}else{
	echo "";
}